<?php
MYTCONN();
//==================== Procedures ============================
$OB_AML = $_GET['AMLID'];
$OB_CL = $GLOBALS['MYT']->db_array("SELECT amh_CLIENT FROM hd_amlalertas WHERE amh_ID = $OB_AML");
mn_field('hidden', 'ED', 'CliNumero', $OB_CL[1]['amh_CLIENT'], '', '', '', '');
mn_field('hidden', 'ED', 'amh_ID', $OB_AML, '', '', '', '');
if (substr($SESSST, 1, 1) == 'A') {
?>
    <script charset="utf-8" type="text/javascript">
        Ext.onReady(function(){
            new Ext.Toolbar({
                renderTo: 'ModuleTabs',
                height: 25,
                plain:true,
                items : [{
                        text:'Detalhes do Alerta',
                        border: 1,
                        handler: function() {
                            document.MQuery.action='_response/call.php?get=Compliance/a1_sep1';
                            subform('MQuery','ModuleContents'); }
                    },'-',{
                        text:'Hist&oacute;rico de Bloqueios',
                        handler: function() {
                            document.MQuery.action='_response/call.php?get=Compliance/a1_sep2';
                            subform('MQuery','ModuleContents'); }
                    },'-',{
                        text:'Ficha do Cliente',
                        handler: function() {
                            document.MQuery.action='_response/call.php?get=Compliance/a1_sep3';
                            subform('MQuery','ModuleContents'); }
                    },'-',{
                        text:'Extracto do Cliente',
                        handler: function() {
                            document.MQuery.action='_response/call.php?get=Compliance/a1_sep4';
                            subform('MQuery','ModuleContents'); }
                    },'-',{
                        text:'Documentos',
                        handler: function() {
                            document.MQuery.action='_response/call.php?get=Compliance/a1_sep5';
                            subform('MQuery','ModuleContents'); }
                    },'-',{
                        text:'Alteracoes do Alerta',
                        handler: function() {
                            document.MQuery.action='_response/call.php?get=Compliance/a1_sep6';
                            subform('MQuery','ModuleContents'); }
                    }
                ]
            });
        });
    </script>
    <div id="ModuleTabs"></div>
<?php } ?>
<div id="ModuleContents"> <?php include('a1_sep1.php'); ?>
</div>